package com.photoeditor.demo.model.image.collage.templet.attr;


import com.photoeditor.demo.model.image.collage.templet.Point;

public class PreAttr implements IStatus{
    private int mRotation;
    private Point mTranslationPoint;
    private boolean mFlipHorizontal;
    private boolean mFlipVertical;

    PreAttr(){//default
        mRotation = 0;
        mTranslationPoint = new Point(0, 0);
        mFlipHorizontal = false;
        mFlipVertical = false;
    }

    PreAttr(int rotation, float translationX, float translationY, boolean flipHorizontal, boolean flipVertical){
        mRotation = rotation;
        mTranslationPoint = new Point(translationX, translationY);
        mFlipHorizontal = flipHorizontal;
        mFlipVertical = flipVertical;
    }

    @Override
    public int getRotate() {
        return mRotation;
    }

    @Override
    public Point getTranslate() {
        return mTranslationPoint;
    }

    @Override
    public boolean flipHorizontal() {
        return mFlipHorizontal;
    }

    @Override
    public boolean flipVertical() {
        return mFlipVertical;
    }
}
